package com.ruibang.glass.sale.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruibang.glass.sale.dto.FileInfoDTO;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;


@Data
@ApiModel
@TableName(value = "g_sale_dispute")
public class GSaleDispute extends BaseEntity implements Serializable {

    @ApiModelProperty(value = "Id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    @ApiModelProperty(value = "异议单号")
    private String disputeNumber;
    @ApiModelProperty(value = "申述时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime disputeTime;
    @ApiModelProperty(value = "申述单位")
    private String disputerUnit;
    @ApiModelProperty(value = "申述描述")
    private String disputerInfo;

    @ApiModelProperty(value = "审批状态")
    private String approvalStatus;
    @ApiModelProperty(value = "当前审批人")
    private String currentApprover;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "创建人Id")
    private String createUserId;

    @ApiModelProperty(value = "处理时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime slowTime;

    @ApiModelProperty(value = "确认人")
    private String confirmedPerson ;

    @ApiModelProperty(value = "确认人Id")
    private String confirmedPersonId ;

    @ApiModelProperty(value = "调查描述")
    private String investigationInfo ;

    @ApiModelProperty(value = "异议处理结果")
    private String disputeResult ;

    @TableField(exist = false)
    @ApiModelProperty(value = "异议附件")
    private List<String> filesIds;

    @TableField(exist = false)
    @ApiModelProperty(value = "异议调查附件")
    private List<String> filesDCIds;

    @TableField(exist = false)
   private List<GSaleDisputeProduct> saleDisputeProductList;


    @ApiModelProperty(value = "状态")
    @TableField(exist = false)
    private String status;

    @ApiModelProperty(value = "流程Id")
    @TableField(exist = false)
    private String processId;

    @ApiModelProperty(value = "审批状态")
    @TableField(exist = false)
    private String approveStatus;

    @ApiModelProperty(value = "审批节点")
    @TableField(exist = false)
    private String nodeName;

    @ApiModelProperty(value = "审批人")
    @TableField(exist = false)
    private String approveUser;

    @ApiModelProperty(value = "审批人")
    @TableField(exist = false)
    private String approveUserId;

    @ApiModelProperty(value = "菜单Id")
    @TableField(exist = false)
    private String menuId;



}
